<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Foundation\Regexp;

Route::group(
    [
        'as' => 'web::',
    ],
    function () {
        // 首页
        Route::get('/', 'HomeController@index')->name('index');
        Route::get('/about', 'HomeController@about')->name('about');
        Route::get('/wenti', 'HomeController@wenti')->name('wenti');
        Route::get('/contact', 'HomeController@contact')->name('contact');
        Route::get('/cases', 'HomeController@cases')->name('cases');
        Route::get('/cases/{id}', 'HomeController@casesDetail')->name('cases_detail');
        Route::get('/news', 'HomeController@news')->name('news');
        Route::get('/news/{id}', 'HomeController@newsDetail')->name('news_detail');
    }
);
